package cate.game.role.pvp.throne.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBTB;

@ClientMsg(title = "历届冠军 の 请求")
public class TBKoHisChampionReq implements MsgInput {

    @Override
    public void execute(GameBody game, ClientContext cc) {
        TBKoHisChampionResp resp = new TBKoHisChampionResp();
        resp.champions = game.pvp.throne.data.holder.koBase.champions;
        resp.sendNow(cc.getRole());
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBTB.KO_HIS_CHAMPION_REQ;
    }
}
